import java.util.Scanner;

public class Threadd3 {
    static int flag = 0;
    public static void main(String[] args) {
        Thread t3 = new Thread(()->{
            Scanner scanner = new Scanner(System.in);
            flag = scanner.nextInt();


        });
        t3.start();
        Thread t4 = new Thread(()->{
            while(flag==0){

            }
            System.out.println("线程结束");
        });

    }
}
